using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ModelTools._Iterator
{
    /// <summary>
    /// <para>Iterate Multivalue</para>
    /// <para>Iterates over a list of values.</para>
    /// <para>循环访问值列表。</para>
    /// </summary>    
    [DisplayName("Iterate Multivalue")]
    public class IterateMultivalue : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public IterateMultivalue()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_values">
        /// <para>Input Values</para>
        /// <para>Input values to iterate through.</para>
        /// <para>要循环访问的输入值。</para>
        /// </param>
        public IterateMultivalue(List<object> _in_values)
        {
            this._in_values = _in_values;
        }
        public override string ToolboxName => "Model Tools";

        public override string ToolName => "Iterate Multivalue";

        public override string CallName => "mb.IterateMultivalue";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_values, _value];

        /// <summary>
        /// <para>Input Values</para>
        /// <para>Input values to iterate through.</para>
        /// <para>要循环访问的输入值。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Values")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _in_values { get; set; }


        /// <summary>
        /// <para>Value</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Value")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _value { get; set; }


        public IterateMultivalue SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}